package com.csnf.mapper;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface BorrowMapper {
    // 添加借阅记录
    @Insert("insert into borrow_record(book_id, user_id,borrow_time,status) values(#{bookId}, #{userId},now(),0)")
    public void addRecord(Integer bookId, Integer userId);
}
